@@ -6,8 +6,7 @@ require 'json_serialized_field' |
||
| 6 | 6 |
class Event < ActiveRecord::Base |
| 7 | 7 |
include JSONSerializedField |
| 8 | 8 |
|
| 9 |
- attr_accessor :propagate_immediately |
|
| 10 |
- attr_accessible :lat, :lng, :payload, :user_id, :user, :expires_at, :propagate_immediately |
|
| 9 |
+ attr_accessible :lat, :lng, :payload, :user_id, :user, :expires_at |
|
| 11 | 10 |
|
| 12 | 11 |
acts_as_mappable |
| 13 | 12 |
|
@@ -1,7 +1,6 @@ |
||
| 1 | 1 |
class AddPropagateImmediatelyToAgent < ActiveRecord::Migration |
| 2 | 2 |
def up |
| 3 | 3 |
add_column :agents, :propagate_immediately, :boolean, :default => false, :null => false |
| 4 |
- execute "UPDATE agents SET propagate_immediately = 0" |
|
| 5 | 4 |
end |
| 6 | 5 |
|
| 7 | 6 |
def down |